package com.lcfc.dao.lmpl;

import java.util.ArrayList;

import com.lcfc.bean.Activity;
import com.lcfc.bean.Buser;
import com.lcfc.dao.UserDao;

/**
 * 用户操作DAO实现
 */
public class UserDaoImpl implements UserDao {

	private ArrayList<Activity> testData() {

		Activity a1 = new Activity();
		a1.setAc_id(111);
		a1.setAc_name("老刘龙虾");
		a1.setAc_img("http://www.hftc.edu.cn/_mediafile/web01/2016/01/22/27wv8sd8yg.jpg");
		a1.setAc_desc("老刘龙虾抢红包啦啦啦啦啦啦");
		a1.setAc_count(100);
		a1.setAc_amount(1000);
		a1.setAc_sigle(10);
		a1.setAc_remain(80);
		a1.setAc_flag(1);
		a1.setAc_lon(117.2294000000d);
		a1.setAc_lat(31.7487200000d);
		a1.setBuser_id(11111);
		
		Activity a2 = new Activity();
		a2.setAc_id(111);
		a2.setAc_name("老乡鸡肥西上牌店");
		a2.setAc_img("http://www.fxzx.net.cn/themes/index/images/wel_logo.png");
		a2.setAc_desc("老乡鸡肥西上牌店抢红包啦啦啦啦啦啦，优惠大道你想哭，真的饿");
		a2.setAc_count(50);
		a2.setAc_amount(200);
		a2.setAc_sigle(4);
		a2.setAc_remain(30);
		a2.setAc_flag(1);
		a2.setAc_lon(117.1640100000d);
		a2.setAc_lat(31.7193100000d);
		a2.setBuser_id(11111);
		
		Activity a3 = new Activity();
		a3.setAc_id(111);
		a3.setAc_name("汇天下酒楼马鞍山路店");
		a3.setAc_img("http://f.hiphotos.baidu.com/baike/pic/item/b2de9c82d158ccbf11e6a64b1fd8bc3eb135416c.jpg");
		a3.setAc_desc("汇天下酒楼马鞍山路店抢红包啦啦啦啦啦啦，优惠大道你想哭，真的饿");
		a3.setAc_count(200);
		a3.setAc_amount(1000);
		a3.setAc_sigle(5);
		a3.setAc_remain(45);
		a3.setAc_flag(1);
		a3.setAc_lon(117.2899400000d);
		a3.setAc_lat(31.8009000000d);
		a3.setBuser_id(11111);

		ArrayList<Activity> list = new ArrayList<Activity>();
		list.add(a1);
		list.add(a2);
		list.add(a3);

		return list;

	}

	public ArrayList<Activity> queryActivityByDistance(int distance,
			double lat, double lon) {
		ArrayList<Activity> list = testData();
		return list;
	}

}
